Skip to content

upgrade all dependencies to latest - #1164

Merged
mikebarkmin merged 1 commit into
mainfrom
chore/upgrade-dependencies
Aug 11, 2026
Merged

upgrade all dependencies to latest#1164
mikebarkmin merged 1 commit into
mainfrom
chore/upgrade-dependencies

Conversation

@mikebarkmin

Copy link
Copy Markdown
Member

Updates every dependency and devDependency across the workspace (~106 packages), and adapts the code where upgrades were breaking.

Breaking changes handled:

  • pako 3 dropped its default export and the {to:"string"} inflate option; use named imports and TextDecoder.
  • @types/hast 3.0.5 replaced the permissive index signature with a precise Properties type: rel/sandbox are now string arrays and typed props no longer accept null. Serialized HTML is unchanged.
  • archiver 8 removed the callable factory in favour of named archive classes (new ZipArchive(...)).
  • TypeScript 6 no longer auto-includes every @types package, so they are listed explicitly; export module became export namespace.
  • ESLint 10 only reads flat config; .eslintrc.json is migrated to eslint.config.mjs.
  • chalk 6 and got 15 ship exports-only manifests that node10 resolution cannot read, so hyperbook maps them to their directory.

TypeScript is pinned to 6.0.3 rather than 7.0.2: TypeScript 7 is the native port and no longer exposes the JS compiler API, which breaks ts-loader, @rollup/plugin-typescript and typescript-eslint.

Also switches moduleResolution to "bundler", which fixes the lint failures that were already present on main, and drops the deprecated @types/tar, @types/glob and @types/pako stubs.

hyperbook-studio now requires VS Code 1.125.0 to match @types/vscode.

Vite 8 warns about configs it cannot load natively, so hyperbook's vite.config.ts is renamed to .mts (the package stays CommonJS for the ncc build) and the excalidraw component's config uses import.meta.dirname instead of __dirname.

Updates every dependency and devDependency across the workspace
(~106 packages), and adapts the code where upgrades were breaking.

Breaking changes handled:

- pako 3 dropped its default export and the `{to:"string"}` inflate
  option; use named imports and TextDecoder.
- @types/hast 3.0.5 replaced the permissive index signature with a
  precise Properties type: `rel`/`sandbox` are now string arrays and
  typed props no longer accept null. Serialized HTML is unchanged.
- archiver 8 removed the callable factory in favour of named archive
  classes (`new ZipArchive(...)`).
- TypeScript 6 no longer auto-includes every @types package, so they
  are listed explicitly; `export module` became `export namespace`.
- ESLint 10 only reads flat config; .eslintrc.json is migrated to
  eslint.config.mjs.
- chalk 6 and got 15 ship exports-only manifests that node10
  resolution cannot read, so hyperbook maps them to their directory.

TypeScript is pinned to 6.0.3 rather than 7.0.2: TypeScript 7 is the
native port and no longer exposes the JS compiler API, which breaks
ts-loader, @rollup/plugin-typescript and typescript-eslint.

Also switches moduleResolution to "bundler", which fixes the lint
failures that were already present on main, and drops the deprecated
@types/tar, @types/glob and @types/pako stubs.

hyperbook-studio now requires VS Code 1.125.0 to match @types/vscode.

Vite 8 warns about configs it cannot load natively, so hyperbook's
vite.config.ts is renamed to .mts (the package stays CommonJS for the
ncc build) and the excalidraw component's config uses
import.meta.dirname instead of __dirname.
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hyperbook-4fwa Ready Ready Preview Aug 11, 2026 8:41pm

@mikebarkmin
mikebarkmin merged commit 87e7042 into main Aug 11, 2026
3 checks passed
@mikebarkmin
mikebarkmin deleted the chore/upgrade-dependencies branch August 11, 2026 20:53
@github-actions github-actions Bot mentioned this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant